import request from '@/utils/request';

export async function getCabinetErrorByPage (params: any) {
    return request('/api/quality/getCabinetErrorByPage', {
    method: 'POST',
    data: params,
  });
}



export async function addCabinetError (params: any) {
    return request('/api/quality/addCabinetError', {
    method: 'POST',
    data: params,
  });
}

export async function updateCabinetError (params: any) {
    return request('/api/quality/updateCabinetError', {
    method: 'POST',
    data: params,
  });
}

export async function delCabinetError (params: any) {
    return request('/api/quality/delCabinetError', {
    method: 'POST',
    data: params,
  });
}


export async function exportCabinetError(params: any) {
    return request('/api/quality/exportCabinetError', {
    method: 'POST',
    data: params,
    responseType: 'blob',
  });
}
export default { getCabinetErrorByPage, addCabinetError, updateCabinetError, delCabinetError, exportCabinetError }
